package com.wsoft.dc.sample;

import com.wsoft.core.cmd.DcConfigService;
import com.wsoft.entity.BaseConfigVO;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * @Author z001
 * @Date 2024/12/19 09:29
 */
@Service(value = "formTodoService")
public class FormTodoServiceImplDc implements DcConfigService {
    @Override
    public Long count(Map<String, Object> paramMap) {
        return 3L;
    }

    @Override
    public List<? extends BaseConfigVO> list(Map<String, Object> paramMap) {
        FormVO formVO1 = new FormVO("todo1","todo","test");
        formVO1.setTitle("formTitle1");
        formVO1.setCreateTime(LocalDateTime.now());
        FormVO formVO2 = new FormVO("todo2","todo","test");
        formVO2.setTitle("formTitle2");
        formVO2.setCreateTime(LocalDateTime.now());
        FormVO formVO3 = new FormVO("todo3","todo","test");
        formVO3.setTitle("formTitle3");
        formVO3.setCreateTime(LocalDateTime.now());
        return Arrays.asList(formVO1,formVO2,formVO3);
    }
}
